home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / sndoff15.zip / TEST_ALR.BAT < prev    next >
DOS Batch File  |  1992-08-18  |  2KB  |  64 lines

  1. : This batch file sounds several Alarm
  2. : types, using both single and two tone formats.
  3. : There should never be an error after an Alarm
  4. : call to Sound Off!....but we check for one anyway.
  5. : ---------------------------------------------------
  6. @echo off
  7. echo  Various Alarm Formats....
  8. echo  Pressing any key will cycle to the next.
  9. echo  Pressing Esc will abort the batch file (DELAY.EXE must be used)
  10. echo:
  11. echo  Two Tone: Switch /A2 or /a2
  12. echo  ---------------------------
  13. echo  800 400 150 200
  14. Soundoff /a2 800 400 150 200
  15. if not errorlevel 0 goto bad    :Test for Sound Off! error
  16. delay 5
  17. if errorlevel 99 goto abort       :Test for Esc keypress (using DELAY)
  18. echo  900 700 150 200
  19. soundoff /a2 900 700 150 200
  20. if not errorlevel 0 goto bad
  21. delay 5
  22. if errorlevel 99 goto abort
  23. echo  1900 1700 150 200
  24. soundoff /a2 1900 1700 150 200
  25. if not errorlevel 0 goto bad
  26. delay 5
  27. if errorlevel 99 goto abort
  28. echo  500 400 50 75
  29. soundoff /a2 500 400 50 75
  30. if not errorlevel 0 goto bad
  31. delay 5
  32. if errorlevel 99 goto abort
  33. echo:
  34. echo  Single Tone: Switch /A or /a
  35. echo  ----------------------------
  36. echo  440 50 50
  37. soundoff /a 440 50 50
  38. if not errorlevel 0 goto bad
  39. delay 5
  40. if errorlevel 99 goto abort
  41. echo  640 200 300
  42. soundoff /a 640 200 300
  43. if not errorlevel 0 goto bad
  44. delay 5
  45. if errorlevel 99 goto abort
  46. echo  200 300 500
  47. soundoff /a 200 300 500
  48. if not errorlevel 0 goto bad
  49. delay 5
  50. if errorlevel 99 goto abort
  51. goto abort
  52. :bad
  53. echo  There was a problem......
  54. goto end
  55. :abort
  56. echo:
  57. soundoff /s 200 100 100 25
  58. echo  User Aborted Test!
  59. delay 5
  60. :end
  61. echo:
  62. soundoff /s 400 900 50 100
  63. echo  Alarm Testing Completed!
  64.